package com.sealer.pattern.creational.factorymethod.factory;

import com.sealer.pattern.creational.factorymethod.service.Sender;
import com.sealer.pattern.creational.factorymethod.service.impl.MailSender;
import com.sealer.pattern.creational.factorymethod.service.impl.SmsSender;

/**
 * Created by sealer on 17/03/28.
 */
public class StaticSenderFactory {

    public static Sender newSmsInstance() {
        return new SmsSender();
    }

    public static Sender newMailInstance() {
        return new MailSender();
    }
}
